package com.example.exp1;

public class MeetingRoom {
    private String name; // 会议室名称
    private int capacity; // 会议室容量
    private boolean hasMedia; // 是否配备多媒体设备

    public MeetingRoom(String name, int capacity, boolean hasMedia) {
        this.name = name;
        this.capacity = capacity;
        this.hasMedia = hasMedia;
    }

    // Getter 和 Setter 方法
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getCapacity() {
        return capacity;
    }

    public void setCapacity(int capacity) {
        this.capacity = capacity;
    }

    public boolean hasMedia() {
        return hasMedia;
    }

    public void setHasMedia(boolean hasMedia) {
        this.hasMedia = hasMedia;
    }

    @Override
    public String toString() {
        return "MeetingRoom{" +
                "name='" + name + '\'' +
                ", capacity=" + capacity +
                ", hasMedia=" + (hasMedia ? "有" : "无") +
                '}';
    }
}
